package token

import (
	. "starsine.cn/appTpl/cmn/defs"
	"starsine.cn/appTpl/cmn/logs"
)

var token *Token = nil

func Start(appCtxt *AppContext) {
	token = CreateToken(appCtxt)
	token.Start()

	logs.Infof("registry.token start")
}

func GetToken() (string, bool) {
	return token.token, token.valid()
}
